import parole
from parole.colornames import colors
from parole.display import interpolateRGB
import pygame, random

import sim, main
from util import *
from dungeon import makeFloor, Room, TemplateRoom
import dungeon

template = \
"""
###############
####*##*##*####
###*       *###
##           ##
# o         o #
#             #
#             #
# o         o #
##           ##
###############
"""[1:]

legend = {
    'o':    parole.map.MapObjectGenerator("", 
            lambda: sim.Obj('charred support pillar', 100, parole.map.AsciiTile('o',
                colors['Black']),
                blockMove=True, blockLOS=True), clearFirst=False),

    '*':    parole.map.MapObjectGenerator("",
            lambda: dungeon.Brazier(), clearFirst=False),

    '#':    dungeon.rockGenerator(colors['DimGray'], 'charred rock'),
}

floorColor1 = colors['SaddleBrown']
floorColor2 = colors['Black']
floorName = 'scorched dirt floor'
mixture = 0.2

diggable = [
    (7,9), 
    (0,6), 
    (14,6), 
]

class FireSettingRoom(TemplateRoom):
    def __init__(self, pos):
        TemplateRoom.__init__(self, template, legend, diggable, pos,
                floorColor1, floorColor2, mixture, floorName)


roomClass = FireSettingRoom

